package com.cloud.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.message.entity.SysNoticeDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 通知与部门关联表
 *
 * @author yzj
 * @since 2022-04-20
 */
@Mapper
public interface SysNoticeDeptMapper extends BaseMapper<SysNoticeDept> {

    /**
     * 通过id删除通知与部门关联信息
     *
     * @param noticeIds
     * @return
     */
    public int deleteNoticeDeptByNoticeId(@Param("noticeIds") List<Long> noticeIds);

    /**
     * 批量新增部门通知信息
     *
     * @param noticeDeptList
     * @return
     */
    public int batchNoticeDept(List<SysNoticeDept> noticeDeptList);

}
